package com.platform.wechat.service.impl;

import com.platform.wechat.common.JsonBean;
import com.platform.wechat.mapper.FirstVisitMapper;
import com.platform.wechat.service.FirstVisitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author YP
 * @company ~~
 * @create 2021-07-31 12:21
 */
@Service
public class FirstVisitServiceImpl implements FirstVisitService {

    @Autowired
    private FirstVisitMapper firstVisitMapper;

    @Override
    public JsonBean selectFirstVisit(Integer officeId, Integer hospitalId) {
        return new JsonBean(0, "ok", firstVisitMapper.selectByWorkingTimeAndDoctorId(officeId, hospitalId));
    }

}
